package com.weihong.it.edi.datasource;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017-02-22 13:58
 **/
public class DataSourceHolder {
    private static final ThreadLocal<String> dataSources = new ThreadLocal<String>();

    //设置数据源
    public static void setDataSource(String customerType) {
        dataSources.set(customerType);
    }

    //获取数据源
    public static String getDataSource() {
        return dataSources.get();
    }

    //清除数据源
    public static void clearDataSource() {
        dataSources.remove();
    }

}
